<?php

//check if user is loged
if(!isset($_SESSION['username']) || empty($_SESSION['username'])) {

	header("Location: login.php");
	die();
}

?>